package com.atguigu.gmall.common.constant;

/**
 * @ClassName RedisCont
 * @Description TODO
 * @Author king
 * @Date 2022/11/9 15:59
 * @Version 1.0
 */
//redis相关常量
public class RedisConst {
    public static final String SKUID_BITMAP_KEY = "skuids";
    public static final String SKU_INFO_CACHE_KEY = "sku:info:";
    public static final String LOCK_PREFIX = "lock";
    public static final String CATEGORY_CACHE_KEY = "categorys";
    public static final String LOGIN_USER = "login:user:";
    public static final long LOGIN_USER_TTL = 1000*60*60*24*7;

    public static final String UID_HEADER = "uid";
    public static final String U_TEMP_ID_HEADER = "userTempId";


    //购物车在redis中的key
    public static final String CART_INFO = "cart:info:";


    public static final Long CART_ITEM_LIMIT = 200L;  //购物车总数量
    public static final long CART_NUM_LIMIT = 200L;   //添加数量
}
